package cn.tyoui.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.tyoui.bean.PriceBean;
import cn.tyoui.mapping.PriceManageMapper;
import cn.tyoui.service.PriceManageService;

@Service("priceManageService")
public class PriceManageServiceImpl implements PriceManageService {

	@Resource
	private PriceManageMapper priceManageMapper;
	@Override
	public boolean addPrice(PriceBean Price) throws Exception {
		return priceManageMapper.addPrice(Price);
	}

	@Override
	public List<PriceBean> queryPrice() throws Exception {
		return priceManageMapper.queryPrice();
	}

	@Override
	public boolean changePrice(PriceBean Price) throws Exception {
		return priceManageMapper.changePrice(Price);
	}

	@Override
	public List<PriceBean> queryOnePrice(PriceBean Price) throws Exception {
		return priceManageMapper.queryOnePrice(Price);
	}

}
